package com.qskj.springsecurity.single.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shikf
 * @version 1.0     2021-02-03 14:32
 */
@RestController
@RequestMapping("/admin/api")
class AdminController {

    @GetMapping("hello")
    public String hello() {
        return "hello,admin";
    }
}

@RestController
@RequestMapping("/app/api")
class AppController {

    @GetMapping("hello")
    public String hello() {
        return "hello,app";
    }
}

@RestController
@RequestMapping("/user/api")
public class UserController {

    @GetMapping("hello")
    public String hello() {
        return "hello,user";
    }
}
